
create  OR REPLACE trigger gastos_trigger
before insert on gastos
for each row
when (new.GASTO_ID is null)
begin
 	select HIBERNATE_SEQUENCE.nextval into :new.GASTO_ID from dual;
end gastos_trigger;

